﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SubSonic;
using CXDB;
/// <summary>
///UserLogin 的摘要说明
/// </summary>
public class UserLogin
{
	public UserLogin()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public static void Add(string uid,string username,string loginok)
    {
        CxUserLogin cx = new CxUserLogin();
        cx.Uid = int.Parse(uid);
        cx.Guid = Guid.NewGuid();
        cx.Username = username;
        cx.LoginOK = loginok;
        cx.Intime = DateTime.Now;
        cx.Ip = HttpContext.Current.Request.UserHostAddress;
        cx.Save();
    }
}
